#ifndef _SH_MEM_H_
#define _SH_MEM_H_

#include "dev.h"

typedef enum
{
  SHM_CREATE_ALWAYS = DEVICE_MODE_CREATE_ALWAYS,
  SHM_CREATE_IF_NOT_FOUND = DEVICE_MODE_CREATE_IF_NOT_FOUND
}shm_open_mode_t;

err_t create_shared_memory(const uint8_t *name, shm_open_mode_t open_mode, uint16_t size, 
                 void **handle, void **address, bool *created);
err_t open_shared_memory(const uint8_t *name, void **handle, void **address);
err_t close_shared_memory(void *handle);


#endif
